﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace LinqToBing.Bing.Wrapper.Exceptions
{
    /// <summary>
    /// Provide exception details for a wrong or missing Bing AppId value.
    /// </summary>
    internal class InvalidAppIdException : Exception
    {
        /// <summary>
        /// Create an exception instance for missing Bing AppId.
        /// </summary>
        public InvalidAppIdException() : base("Bing AppId is missing or invalid.") { }

        /// <summary>
        /// Create an exception instance for invalid Bing AppId.
        /// </summary>
        public InvalidAppIdException(string value) : base(string.Format("'{0}' is not a valid Bing AppId.", value)) { }
    }
}
